package com.zvezda.http.utils;
/**
 * 键值类
 * @author Administrator
 *
 * @param <K>
 * @param <V>
 */
public class KeyValue<K,V> 
{
	/**
	 * 键
	 */
	private String key = "";
	/**
	 * 值
	 */
	private Object value = null;
	public KeyValue(String key,Object value)
	{
		this.key = key;
		this.value = value;
	}
	/**
	 * 获得键
	 * @return
	 */
	public String getKey()
	{
		return key;
	}
	/**
	 * 设置键
	 * @param key
	 */
	public void setKey(String key)
	{
		this.key = key;
	}
	/**
	 * 获得值
	 * @return
	 */
	public Object getValue()
	{
		return value;
	}
	/**
	 * 设置值
	 * @param value
	 */
	public void setValue(Object value)
	{
		this.value = value;
	}
	
	@Override
	public String toString() 
	{
	    return "KeyValue [key=" + key + ", value=" + value + "]";
	}
}
